package com.zzyl.nursing.service;

import java.util.List;

import com.aliyun.iot20180120.models.QueryDevicePropertyStatusResponseBody;
import com.zzyl.nursing.domain.Device;
import com.zzyl.nursing.domain.DeviceDataRequest;
import com.zzyl.nursing.domain.DeviceDataResponse;
import com.zzyl.nursing.domain.FamilyMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.AddFamilyMemberRequest;
import com.zzyl.nursing.dto.UserLoginRequestDto;
import com.zzyl.nursing.vo.ElderInfoVO;
import com.zzyl.nursing.vo.LoginVo;
import com.zzyl.nursing.vo.QueryDeviceDataListByDayVo;

/**
 * 老人家属Service接口
 * 
 * @author ruoyi
 * @date 2024-09-19
 */
public interface IFamilyMemberService extends IService<FamilyMember>
{
    /**
     * 查询老人家属
     * 
     * @param id 老人家属主键
     * @return 老人家属
     */
    public FamilyMember selectFamilyMemberById(Long id);

    /**
     * 查询老人家属列表
     * 
     * @param familyMember 老人家属
     * @return 老人家属集合
     */
    public List<FamilyMember> selectFamilyMemberList(FamilyMember familyMember);

    /**
     * 新增老人家属
     * 
     * @param familyMember 老人家属
     * @return 结果
     */
    public int insertFamilyMember(FamilyMember familyMember);

    /**
     * 修改老人家属
     * 
     * @param familyMember 老人家属
     * @return 结果
     */
    public int updateFamilyMember(FamilyMember familyMember);

    /**
     * 批量删除老人家属
     * 
     * @param ids 需要删除的老人家属主键集合
     * @return 结果
     */
    public int deleteFamilyMemberByIds(Long[] ids);



    /**
     * 小程序登录
     * @param dto
     * @return
     */
    LoginVo login(UserLoginRequestDto dto);

    /**
     * 绑定家人
     * @param elder
     * @return
     */
    void addFamilyMember(AddFamilyMemberRequest elder);

    /**
     * 分页查询
     *
     * @param
     * @return
     */


    List<ElderInfoVO> selectPage(int pageNum, int pageSize);

    QueryDevicePropertyStatusResponseBody.QueryDevicePropertyStatusResponseBodyData QueryDevicePropertyStatus(Device device);


    List<QueryDeviceDataListByDayVo> queryDeviceDataListByDay(DeviceDataRequest request);

    List<QueryDeviceDataListByDayVo> queryDeviceDataListByDayXiXi(DeviceDataRequest request);


    void deleteByIdelder(Long id);
}
